package com.nuaa.ojjudgecodesandbox.security;

import java.io.File;
import java.io.FileDescriptor;
import java.security.Permission;

/**
 * @Author ortonzhu
 * @Date 2024/10/21 9:45
 */
public class DefaultSecurityManager extends SecurityManager {

    @Override
    public void checkPermission(Permission perm) {
        System.out.println("默认不限制");
        super.checkPermission(perm);
    }


    @Override
    public void checkRead(FileDescriptor fd) {
        super.checkRead(fd);
    }


    @Override
    public void checkDelete(String file) {
        super.checkDelete(file);
    }


    @Override
    public void checkConnect(String host, int port) {
        super.checkConnect(host, port);
    }

    @Override
    public void checkExec(String cmd) {
        super.checkExec(cmd);
    }
}
